
import {createStore} from 'vuex'
import cartModule from '@/store/modules/cartModule.js'
import userModule from '@/store/modules/userModule.js'

// 3. 创建 Store 的实例对象
const store = createStore({
	state: {
	    info: 'hello world'
	},
	actions:{
		hello(){
			console.log('hello world')
		}
	},
	mutations:{},
	getters: {},
	modules: {
		cart:cartModule,
		user:userModule
	}
})
export default store